package com.dldata.devtools30.repository.zhibiao;



import com.dldata.devtools30.entity.DevtZbplanParaEntity;
import com.dldata.devtools30.entity.DevtZbplanParatjEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by ai on 2017/1/11.
 */
@Repository
public interface DevtZbplanParaEntityDao
        extends com.dldata.devtools30.repository.BaseRepository<DevtZbplanParaEntity,String>,
        JpaSpecificationExecutor<DevtZbplanParaEntity> {
    
    @Query("select t from DevtZbplanParaEntity t where t.planid = ?1 order by xh ")
    public List<DevtZbplanParaEntity> getAllByPlanid(String planid);
}
